package com.ds.infra.rpc.example.api.constants;

/**
 * API常量
 */
public final class ApiConstants {

    private ApiConstants() {}

    public static final String API_VERSION = "1.0";
    public static final long DEFAULT_TIMEOUT_MILLIS = 5000L;

    // 商品状态
    public static final int PRODUCT_STATUS_ON_SALE = 1;  // 在售
    public static final int PRODUCT_STATUS_OFF_SALE = 0; // 下架

    // 订单状态
    public static final int ORDER_STATUS_CREATED = 0;    // 已创建
    public static final int ORDER_STATUS_PAID = 1;       // 已支付
    public static final int ORDER_STATUS_SHIPPED = 2;    // 已发货
    public static final int ORDER_STATUS_COMPLETED = 3;  // 已完成
    public static final int ORDER_STATUS_CANCELLED = 4;  // 已取消

    // 分页默认值
    public static final int DEFAULT_PAGE_SIZE = 10;
    public static final int DEFAULT_PAGE_NUM = 1;
}
